package com.example.book_recommend.service;

import com.example.book_recommend.entity.BookInfo;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface BookService {
    BookInfo getBookInfo(Long id);
    BookInfo getBookByName(String name);
    List<BookInfo> getBookByPage(Integer page, Integer size, String name);

    List<BookInfo> getBookByPage(Integer page, Integer size);

    List<BookInfo> getBookByPage(Integer page, Integer size, Integer storeId);

    List<BookInfo> getBookByPage(Integer page, Integer size, Integer storeId, Integer isShelf);

    int insert(BookInfo bookInfo);
    int update(BookInfo bookInfo);
    int setIsOnShelf(Integer bookId, Integer onShelf);

    int getBookPageSizeByPage(Integer storeId);

    ArrayList<ArrayList<BookInfo>> getBookByCate(ArrayList<Integer> cateIds,Integer page,Integer size);

    ArrayList<BookInfo> getTop50All();
}
